package com.hlhj.carview.presenter

import android.content.Context
import com.example.mymvp.mvp.BasePresenter
import com.hlhj.carview.Iview.GetCashView
import com.hlhj.carview.bean.MyBaseBean
import com.hlhj.carview.module.GetCashModule

/**
 * Created by Never Fear   on 2019\1\11 0011.
Never More....
 */
class GetCashPresenter:BasePresenter<GetCashModule,GetCashView>(), GetCashView {
    override fun setResult(myBaseBean: MyBaseBean) {
        view?.setResult(myBaseBean)
    }

    fun getcash(account:String,type:Int,money:String,c:Context){
        module?.getCash(account, type, money, c)
    }
    override fun createModule() {
        module= GetCashModule()
        module?.lis=this
    }
}